package com.xuecheng.base.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 分页查询通用参数
 *
 * @author : [lm]
 * @version : [v1.0]
 * @createTime : [2023/10/13 20:44]
 */
@Setter
@Getter
@ToString
public class PageParams {
    /**
     * 当前页码
     */
    @ApiModelProperty("当前页码")
    private Long pageNo = 1L;

    /**
     * 每页记录数默认值
     */
    @ApiModelProperty("每页记录数默认值")
    private Long pageSize = 10L;

    public PageParams(){}

    public PageParams(Long pageNo, Long pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }
}
